package com.iwhalecloud.citybrain.flow.platform.manager.application.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lilh
 * @date 2021/4/29 15:25
 */
@Data
@ConfigurationProperties(prefix = "message.sender")
public class MessageSenderProperties {

    private Default system = new Default();

    private NotificationCenter notificationCenter = new NotificationCenter();


    @Data
    public static class Default {
        private boolean enable = true;
    }

    @Data
    public static class NotificationCenter {
        /**
         * 是否启用
         */
        private boolean enable = true;

        /**
         * 在消息中心注册时分配的appId
         */
        private String appId;

        /**
         * 消息中心服务地址
         */
        private String url;
    }

}
